package com.juzipi.upload.service;

import com.juzipi.upload.utils.RandomUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * @Author juzipi
 * @Date 2021/5/28 15:11
 * @Info
 */
@Service
public class UploadService {


    //保存数据库就略过了
    public Integer insertFilePath() {
        Random random = new Random();
        int i = 60;
        if (i>=50){
            return 1;
        }
        return 0;
    }


}
